package cn.mhome.merchant.server.data.convert;

import cn.mhome.merchant.dao.common.po.SysUser;
import cn.mhome.merchant.entity.system.result.SysUserResult;

public class SystemConverter {

	/**
	 * po转vo
	 * @param sysUser
	 * @return
	 */
	public static SysUserResult convert(SysUser sysUser){
		SysUserResult sysUserResult = new SysUserResult();
		sysUserResult.setUserId(String.valueOf(sysUser.getUserid()));
		sysUserResult.setUsername(String.valueOf(sysUser.getUsername()));
		sysUserResult.setJob(sysUser.getJob());
		sysUserResult.setState(sysUser.getState());
		sysUserResult.setStateName("有效");
		return sysUserResult;
	}
}
